import mockJS from "mockjs";

const userlist = mockJS.mock({
    "data|100": [{
        name: "@cname",// 表示生成不同的中文名
        // ename: "@name",// 生成不同的英文名
        "id|+1":1,
        avater: mockJS.Random.image('200x100', '#ffcc33', '#FFF', 'png', '!'),
        date: "@date",
        time: "@time"
    }]
})

module.exports = [
    {
        method: "post",
        url: "/api/users",
        response: ({ body }) => {
            return {
                code:200,
                msg:"success",
                data: userlist
            }
        }
    }
]